<script setup lang="ts">
const clipText = ref("");
</script>

<template>
  <div>
    <h1 class="title">4.v-copy</h1>
    <div class="btns">
      <button v-copy="clipText" class="btn">复制</button>
    </div>
    <div class="module">
      复制指令
      <p>{{ clipText }}</p>
    </div>
  </div>
</template>

<style scoped lang="scss"></style>
